package com.tcm.smarthealth.dto;

import io.swagger.v3.oas.annotations.media.Schema;

import java.math.BigDecimal;
import java.util.List;

@Schema(name = "QuestionStreamChunk", description = "问答流式响应片段")
public class QuestionStreamChunk {

    @Schema(description = "当前片段内容")
    private String content;

    @Schema(description = "是否已完成")
    private boolean finished;

    @Schema(description = "模型置信度")
    private BigDecimal confidence;

    @Schema(description = "建议列表")
    private List<String> suggestions;

    @Schema(description = "当完成时返回的完整记录")
    private QuestionResponse record;

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public boolean isFinished() {
        return finished;
    }

    public void setFinished(boolean finished) {
        this.finished = finished;
    }

    public BigDecimal getConfidence() {
        return confidence;
    }

    public void setConfidence(BigDecimal confidence) {
        this.confidence = confidence;
    }

    public List<String> getSuggestions() {
        return suggestions;
    }

    public void setSuggestions(List<String> suggestions) {
        this.suggestions = suggestions;
    }

    public QuestionResponse getRecord() {
        return record;
    }

    public void setRecord(QuestionResponse record) {
        this.record = record;
    }
}
